1 package com.iluwatar;
2
3 /**
4 *
5 * Troll implements Hostile interface directly.
6 *
7 */
8 public class Troll implements Hostile {
9
10 public void attack() {
11 System.out.println("The troll swings at you with a club!");
12 }
13
14 public void fleeBattle() {
15 System.out.println("The troll shrieks in horror and runs away!");
16 }
17
18 }